[PATCH] data/systemd-tmpfiles: protect the per-snap tmp (#16197)
authorPhilip Meulengracht <the_meulengracht@hotmail.com>
Wed, 12 Nov 2025 13:50:06 +0000 (14:50 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 17 Mar 2026 21:17:14 +0000 (22:17 +0100)
Protect the per-snap tmp directory against being reaped by age

Gbp-Pq: Name data-systemd-tmpfiles-protect-the-per-snap-tmp-16197.patch

data/systemd-tmpfiles/snapd.conf

index 03c9bb076f9b1233f14cb7f3eb011eae4b1e6bee..da8f1c38b7098d745f2f75f1f4eec4bf212942a7 100644 (file)
@@ -1 +1,7 @@
 D! /tmp/snap-private-tmp 0700 root root -
+
+# make sure the snap's private tmp folders are 
+# not reaped by age if configured by the system (noble+)
+# this will still let the contents be reaped, just not the
+# folder itself
+X /tmp/snap-private-tmp/*/tmp